<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
  <title>历史记录页面</title>
  <style>
    /* 页面整体样式 */
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #f5f5f5;
    }

    /* 历史记录容器 */
    .history-container {
      width: 80%;
      height: 100%;
      max-width: 700px;
      background-color: #ffffff;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 50px;
      position: relative;
    }

    header{
      text-align: center;
      margin-top: 50px;
      margin-bottom: 30px;
    }

    /* 单条记录样式 */
    .record {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 30px;
      margin-bottom: 30px;
      padding: 20px 30px;
      background-color: #e8f4fc;
      border-radius: 10px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      margin-bottom: 15px;
    }

    /* 图片样式 */
    .record img {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      margin-right: 10px;
    }

    /* 记录内容样式 */
    .record-content {
      flex: 1;
      margin-right: 10px;
    }

    .record-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 5px;
    }

    .record-desc {
      font-size: 14px;
      color: #666;
    }

    /* 查看详情按钮样式 */
    .detail-btn {
      padding: 6px 12px;
      font-size: 14px;
      color: #007bff;
      border: 1px solid #007bff;
      background-color: #ffffff;
      border-radius: 5px;
      cursor: pointer;
    }

    .detail-btn:hover {
      background-color: #f0f8ff;
    }

    /*返回按钮*/
.bx{
  background-color: hsl(0, 0%, 100%);
  font-size: large;
  color: #0b0b0b;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 20px;
  margin-left: 10px;
  margin-top: 20px;
  left: 20px;
  position: absolute;
}

.bx:hover {
  background-color: grey;
}
  </style>
</head>
<body>

  <div class="history-container">
    <div id="backButton">
      <a href="{{ url_for('dashboard') }}">
          <button class="bx bx-left-arrow icon" > 返回首页 </button>
      </a>
  </div>
    <header><h1>历史记录</h1></header>
    <!-- 第一条记录 -->
      <div class="record">
          <img src="{{ url_for('static', filename='user_data/result/aspect_frequency.png') }}" alt="记录图片">
          <img src="{{ url_for('static', filename='user_data/result/final_sentiment_distribution.png') }}" alt="记录图片">
          <img src="{{ url_for('static', filename='user_data/result/sentiment_word_frequency.png') }}" alt="记录图片">
      <div class="record-content">
        <div class="record-title">评价情感及内容词频分析</div>
        <div class="record-desc">分析用户评论中的高频词及情感倾向，显示积极情感占主导，关注学习内容及难度。</div>
      </div>
       <a href="{{ url_for('historyDetail') }}">
          <button class="detail-btn">查看详情</button>
       </a>
    </div>

    <!-- 可以继续添加更多记录 -->

  </div>


</body>
</html>
